<?php
namespace app\api\controller\v1;

use app\api\model\Banner;
use app\api\model\Product;
use app\api\model\Theme;

class Index extends Base
{
    public function banner($id)
    {
        $banner = new Banner;

        $banner =$banner->getBannerById($id);

        return $this->success($banner);
    }

    public function themes(){

        $theme = new Theme;

        $themes = $theme->getThemes();

        return $this->success($themes);

    }

    public function new_products()
    {
        $products  = new Product;

        $products = $products->getNewProducts();

        return $this->success($products);



    }
}
